package com.restaurant.mapper;

import com.restaurant.po.OrderDetail;
import java.util.List;

public interface OrderDetailMapper {
    // 增删改查方法
    int insertOrderDetail(OrderDetail orderDetail);
    int deleteOrderDetail(Integer id);
    int updateOrderDetail(OrderDetail orderDetail);
    OrderDetail selectOrderDetailById(Integer id);
    List<OrderDetail> selectAllOrderDetails();

    // 多对一查询：查询订单详情及其菜单项信息
    List<OrderDetail> selectOrderDetailsWithMenuItem(Integer orderId);
}